package com.qianqian.service.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GameRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GameRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andChipIsNull() {
            addCriterion("chip is null");
            return (Criteria) this;
        }

        public Criteria andChipIsNotNull() {
            addCriterion("chip is not null");
            return (Criteria) this;
        }

        public Criteria andChipEqualTo(Double value) {
            addCriterion("chip =", value, "chip");
            return (Criteria) this;
        }

        public Criteria andChipNotEqualTo(Double value) {
            addCriterion("chip <>", value, "chip");
            return (Criteria) this;
        }

        public Criteria andChipGreaterThan(Double value) {
            addCriterion("chip >", value, "chip");
            return (Criteria) this;
        }

        public Criteria andChipGreaterThanOrEqualTo(Double value) {
            addCriterion("chip >=", value, "chip");
            return (Criteria) this;
        }

        public Criteria andChipLessThan(Double value) {
            addCriterion("chip <", value, "chip");
            return (Criteria) this;
        }

        public Criteria andChipLessThanOrEqualTo(Double value) {
            addCriterion("chip <=", value, "chip");
            return (Criteria) this;
        }

        public Criteria andChipIn(List<Double> values) {
            addCriterion("chip in", values, "chip");
            return (Criteria) this;
        }

        public Criteria andChipNotIn(List<Double> values) {
            addCriterion("chip not in", values, "chip");
            return (Criteria) this;
        }

        public Criteria andChipBetween(Double value1, Double value2) {
            addCriterion("chip between", value1, value2, "chip");
            return (Criteria) this;
        }

        public Criteria andChipNotBetween(Double value1, Double value2) {
            addCriterion("chip not between", value1, value2, "chip");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeIsNull() {
            addCriterion("game_rule_code is null");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeIsNotNull() {
            addCriterion("game_rule_code is not null");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeEqualTo(String value) {
            addCriterion("game_rule_code =", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeNotEqualTo(String value) {
            addCriterion("game_rule_code <>", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeGreaterThan(String value) {
            addCriterion("game_rule_code >", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeGreaterThanOrEqualTo(String value) {
            addCriterion("game_rule_code >=", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeLessThan(String value) {
            addCriterion("game_rule_code <", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeLessThanOrEqualTo(String value) {
            addCriterion("game_rule_code <=", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeLike(String value) {
            addCriterion("game_rule_code like", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeNotLike(String value) {
            addCriterion("game_rule_code not like", value, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeIn(List<String> values) {
            addCriterion("game_rule_code in", values, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeNotIn(List<String> values) {
            addCriterion("game_rule_code not in", values, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeBetween(String value1, String value2) {
            addCriterion("game_rule_code between", value1, value2, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andGameRuleCodeNotBetween(String value1, String value2) {
            addCriterion("game_rule_code not between", value1, value2, "gameRuleCode");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andResultChipIsNull() {
            addCriterion("result_chip is null");
            return (Criteria) this;
        }

        public Criteria andResultChipIsNotNull() {
            addCriterion("result_chip is not null");
            return (Criteria) this;
        }

        public Criteria andResultChipEqualTo(Double value) {
            addCriterion("result_chip =", value, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipNotEqualTo(Double value) {
            addCriterion("result_chip <>", value, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipGreaterThan(Double value) {
            addCriterion("result_chip >", value, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipGreaterThanOrEqualTo(Double value) {
            addCriterion("result_chip >=", value, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipLessThan(Double value) {
            addCriterion("result_chip <", value, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipLessThanOrEqualTo(Double value) {
            addCriterion("result_chip <=", value, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipIn(List<Double> values) {
            addCriterion("result_chip in", values, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipNotIn(List<Double> values) {
            addCriterion("result_chip not in", values, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipBetween(Double value1, Double value2) {
            addCriterion("result_chip between", value1, value2, "resultChip");
            return (Criteria) this;
        }

        public Criteria andResultChipNotBetween(Double value1, Double value2) {
            addCriterion("result_chip not between", value1, value2, "resultChip");
            return (Criteria) this;
        }

        public Criteria andGameNumberIsNull() {
            addCriterion("game_number is null");
            return (Criteria) this;
        }

        public Criteria andGameNumberIsNotNull() {
            addCriterion("game_number is not null");
            return (Criteria) this;
        }

        public Criteria andGameNumberEqualTo(Integer value) {
            addCriterion("game_number =", value, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberNotEqualTo(Integer value) {
            addCriterion("game_number <>", value, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberGreaterThan(Integer value) {
            addCriterion("game_number >", value, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_number >=", value, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberLessThan(Integer value) {
            addCriterion("game_number <", value, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberLessThanOrEqualTo(Integer value) {
            addCriterion("game_number <=", value, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberIn(List<Integer> values) {
            addCriterion("game_number in", values, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberNotIn(List<Integer> values) {
            addCriterion("game_number not in", values, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberBetween(Integer value1, Integer value2) {
            addCriterion("game_number between", value1, value2, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andGameNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("game_number not between", value1, value2, "gameNumber");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNull() {
            addCriterion("update_user_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNotNull() {
            addCriterion("update_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdEqualTo(String value) {
            addCriterion("update_user_id =", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotEqualTo(String value) {
            addCriterion("update_user_id <>", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThan(String value) {
            addCriterion("update_user_id >", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_user_id >=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThan(String value) {
            addCriterion("update_user_id <", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThanOrEqualTo(String value) {
            addCriterion("update_user_id <=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLike(String value) {
            addCriterion("update_user_id like", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotLike(String value) {
            addCriterion("update_user_id not like", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIn(List<String> values) {
            addCriterion("update_user_id in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotIn(List<String> values) {
            addCriterion("update_user_id not in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdBetween(String value1, String value2) {
            addCriterion("update_user_id between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotBetween(String value1, String value2) {
            addCriterion("update_user_id not between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andAccountYueIsNull() {
            addCriterion("account_yue is null");
            return (Criteria) this;
        }

        public Criteria andAccountYueIsNotNull() {
            addCriterion("account_yue is not null");
            return (Criteria) this;
        }

        public Criteria andAccountYueEqualTo(Double value) {
            addCriterion("account_yue =", value, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueNotEqualTo(Double value) {
            addCriterion("account_yue <>", value, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueGreaterThan(Double value) {
            addCriterion("account_yue >", value, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueGreaterThanOrEqualTo(Double value) {
            addCriterion("account_yue >=", value, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueLessThan(Double value) {
            addCriterion("account_yue <", value, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueLessThanOrEqualTo(Double value) {
            addCriterion("account_yue <=", value, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueIn(List<Double> values) {
            addCriterion("account_yue in", values, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueNotIn(List<Double> values) {
            addCriterion("account_yue not in", values, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueBetween(Double value1, Double value2) {
            addCriterion("account_yue between", value1, value2, "accountYue");
            return (Criteria) this;
        }

        public Criteria andAccountYueNotBetween(Double value1, Double value2) {
            addCriterion("account_yue not between", value1, value2, "accountYue");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}